home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / xw2.000 / xw2 / xw / documentation / known-bugs / floating-point
Encoding:
Text File  |  1994-12-05  |  791 b   |  29 lines

  1.  
  2. Floatting point numbers can be inserted into the XBW database
  3. only in two ways:
  4.  
  5. a) d(name 1.234);      creates a floating point VAR-Element.
  6.                        that thing works just fine :-))
  7.  
  8. b) bg(name . 1.234);   the 'bg' command inserts a floating point 
  9.                        only if it has decimals other than 0000...
  10.  
  11.                        so, to create floating point numbers, use
  12.  
  13.    bg(name . 1.234);
  14.    bg(name . 1.00000000001);    (for a "1")
  15.    bg(name . 0.00000000001);    (for a "0")
  16.  
  17.    DO NOT WRITE
  18.    bg(name . 1.0); or 
  19.    bg(name . 0.0); because that creates integer VAR-Elements
  20.  
  21.    CURE FOR THAT PROBLEM: define bg() with a dummy value and instantly
  22.    set it to the desired value via:
  23.  
  24.    (dbl)OBJ:name.V := 1.0;         (if you want an exact 1 value)
  25.  
  26.  
  27.    
  28.  
  29.